<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/', function () {
    dump('yidong');
    return view('welcome');
});

Route::any('demo','Demo@index');

//无需登陆验证的路由
Route::group([],function (){
    Route::any('Announcement','Announcement@logic');
    Route::any('DiamondsMall','DiamondsMall@logic');
    Route::any('ExchangeActionList','ExchangeActionList@logic');
    Route::any('ExchangeItem','ExchangeItem@logic');
    Route::any('FinishTask','FinishTask@logic');
    Route::any('FuncSwitch','FuncSwitch@logic');
    Route::any('GetItemList','GetItemList@logic');
    Route::any('GoldMall','GoldMall@logic');
    Route::any('TicketMall','GoldMall@ticketMall');
    Route::any('Login','Login@logic');
    Route::any('QueryNotice','QueryNotice@logic');
    Route::any('Rank','Rank@logic');
    Route::any('Register','Register@logic');
    Route::any('ReviewCard','ReviewCard@logic');
    Route::any('ServerList','ServerList@logic');
    Route::any('ServerDetail','ServerList@detail');
    Route::any('UseCard','UseCard@logic');
    Route::any('ViewBag','ViewBag@logic');
    Route::any('WxLogin','WxLogin@logic');
    Route::any('MiguLogin','MiGuLogin@logic');
    Route::get('MiguChargeCallback','MiGuPayCallback@callback');

});


//需要验证登录的路由
Route::group(['middleware' => ['check.login']],function (){
    Route::any('BuyGold','BuyGold@logic');
    Route::any('CheckPlayerIfGame','CheckPlayerIfGame@logic');
    Route::any('MailList','MailList@logic');
    Route::any('MonthlyCalendar','MonthlyCalendar@logic');
    Route::any('PaiWeiInfo','PaiWeiInfo@logic');
    Route::any('PaiWeiReward','PaiWeiReward@logic');
    Route::any('ReadMail','ReadMail@logic');
    Route::any('RefreshMoney','RefreshMoney@logic');
    Route::any('RewardBox','RewardBox@logic');
    Route::any('SignIn','SignIn@logic');
    Route::any('UseItem','UseItem@logic');
    Route::any('TaskList','TaskList@logic');
    Route::any('RechargeTaskList','RechargeTaskList@logic');
    //俱乐部
    Route::any('CreateRoom','RoomRec@create');
    Route::any('DissolutionRoom','RoomRec@dissolution');
    Route::any('CreateClub','Club@create');
    Route::any('UpdateClubName','Club@updateClubName');
    Route::any('JoinInClub','Club@joinIn');
    Route::any('ClubList','Club@table');
    Route::any('ClubMembers','Club@member');
    Route::any('ClubRequest','Club@requestList');
    Route::any('HandleRequest','Club@handleRequest');
    Route::any('ExitClub','Club@exitClub');
    Route::any('CheckClub','Club@checkClub');
    Route::any('DissolveClub','Club@dissolve');
    Route::any('ClubRoomList','Club@room');
    Route::any('AddClubRoom','RedisRoom@clubRoom');
    Route::any('AddRoom','RedisRoom@Room');
    //每日登录抽奖
    Route::any('GetLuckyDraw','LuckyDraw@get');
    Route::any('HandleLuckyDraw','LuckyDraw@handle');
    //生成咪咕订单号
    Route::any('MiguOrder','MiGuPay@generateOrder');
    //钻石兑换房卡
    Route::any('BuyTicket','BuyTicket@handle');
    //更换头像
    Route::get('updateIcon','PlayerInfo@update');
});
